<html>
<head><meta charset="utf-8"><title>What is the policy for new lints? · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html">What is the policy for new lints?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="221184203"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221184203" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221184203">(Dec 30 2020 at 02:11)</a>:</h4>
<p>Rustdoc has been adding a few lints over the past year (e.g. <a href="https://github.com/rust-lang/rust/pull/77856">https://github.com/rust-lang/rust/pull/77856</a>, <a href="https://github.com/rust-lang/rust/pull/77249">https://github.com/rust-lang/rust/pull/77249</a>, <a href="https://github.com/rust-lang/rust/pull/77119">https://github.com/rust-lang/rust/pull/77119</a>). <span class="user-mention" data-user-id="123856">@Vadim Petrochenkov</span> mentioned in <a href="https://github.com/rust-lang/rust/pull/80456#issuecomment-751882904">https://github.com/rust-lang/rust/pull/80456#issuecomment-751882904</a> that new lints should be going through T-lang. Is that true even for lints only emitted by rustdoc? Is it ok for me to approve <a href="https://github.com/rust-lang/rust/pull/80456">https://github.com/rust-lang/rust/pull/80456</a>, which turns an existing hard warning into a lint?</p>



<a name="221185422"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221185422" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221185422">(Dec 30 2020 at 02:44)</a>:</h4>
<p><span class="user-mention" data-user-id="232545">@Joshua Nelson</span> Do you know why rustdoc isn't using tool-scoped lints like <code>rustdoc::broken_intra_doc_links</code>?</p>



<a name="221185429"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221185429" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221185429">(Dec 30 2020 at 02:44)</a>:</h4>
<p>I think just no one thought of it</p>



<a name="221185433"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221185433" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221185433">(Dec 30 2020 at 02:44)</a>:</h4>
<p>I'd be happy to switch it, but we couldn't get rid of the old lints, that would be a breaking change</p>



<a name="221185438"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221185438" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221185438">(Dec 30 2020 at 02:44)</a>:</h4>
<p>they'd have to be deprecated instead</p>



<a name="221185442"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221185442" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221185442">(Dec 30 2020 at 02:45)</a>:</h4>
<p>It was part of <a href="https://github.com/rust-lang/rfcs/issues/2103">RFC#2103</a></p>



<a name="221185456"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221185456" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221185456">(Dec 30 2020 at 02:45)</a>:</h4>
<p>then never implemented I guess <span aria-label="shrug" class="emoji emoji-1f937" role="img" title="shrug">:shrug:</span> this is before I joined the team</p>



<a name="221185521"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221185521" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221185521">(Dec 30 2020 at 02:46)</a>:</h4>
<p><span class="user-mention" data-user-id="210316">@GuillaumeGomez</span> <span class="user-mention" data-user-id="132040">@Manish Goregaokar</span>  do you know?</p>



<a name="221185589"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221185589" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221185589">(Dec 30 2020 at 02:48)</a>:</h4>
<p>I'd rather not only add <code>rustdoc::</code> for new lints though, that seems even more inconsistent</p>



<a name="221185681"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221185681" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221185681">(Dec 30 2020 at 02:50)</a>:</h4>
<p>I would expect all existing lints to get renamed over to <code>rustdoc::</code>.  I'm not sure if the rename machinery can handle that, though.</p>



<a name="221185697"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221185697" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221185697">(Dec 30 2020 at 02:51)</a>:</h4>
<p>looks like other parts of the RFC weren't implemented either: <a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=abbc8977f2e7a17704f2858e7e350d71">https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=abbc8977f2e7a17704f2858e7e350d71</a></p>



<a name="221185786"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221185786" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221185786">(Dec 30 2020 at 02:53)</a>:</h4>
<p><span class="user-mention silent" data-user-id="120518">Eric Huss</span> <a href="#narrow/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F/near/221185681">said</a>:</p>
<blockquote>
<p>I would expect all existing lints to get renamed over to <code>rustdoc::</code>.  I'm not sure if the rename machinery can handle that, though.</p>
</blockquote>
<p>ok - I expect this to be moderately disruptive for <code>broken_intra_doc_links</code>, but as long as the compiler suggests <code>rustdoc::broken_intra_doc_links</code> isntead I'm ok with that</p>



<a name="221185793"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221185793" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221185793">(Dec 30 2020 at 02:53)</a>:</h4>
<p>let me take a stab at that</p>



<a name="221185902"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221185902" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221185902">(Dec 30 2020 at 02:55)</a>:</h4>
<p><a href="https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint/context/struct.LintStore.html#method.register_group">https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint/context/struct.LintStore.html#method.register_group</a> looks right</p>



<a name="221186201"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221186201" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221186201">(Dec 30 2020 at 03:02)</a>:</h4>
<p><span class="user-mention" data-user-id="264664">@flip1995</span> do you happen to have a code sample to point me to?</p>



<a name="221188088"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221188088" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221188088">(Dec 30 2020 at 03:53)</a>:</h4>
<p><span class="user-mention silent" data-user-id="120518">Eric Huss</span> <a href="#narrow/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F/near/221185681">said</a>:</p>
<blockquote>
<p>I would expect all existing lints to get renamed over to <code>rustdoc::</code>.  I'm not sure if the rename machinery can handle that, though.</p>
</blockquote>
<p>apparently not</p>
<div class="codehilite"><pre><span></span><code>thread &#39;rustc&#39; panicked at &#39;compiler/rustc_lint/src/context.rs:267:18: invalid lint renaming of intra_doc_link_resolution_failure to rustdoc::broken_intra_doc_links&#39;, compiler/rustc_middle/src/util/bug.rs:34:26
</code></pre></div>



<a name="221188132"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221188132" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221188132">(Dec 30 2020 at 03:54)</a>:</h4>
<p>I do see <code>check_tool_name_for_backwards_compat</code> though, I'll try that</p>



<a name="221188223"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221188223" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221188223">(Dec 30 2020 at 03:57)</a>:</h4>
<p>oh wait that won't help - rustdoc lints are now only registered when rustdoc runs</p>



<a name="221188228"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221188228" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221188228">(Dec 30 2020 at 03:57)</a>:</h4>
<p>so people will still see 'unknown lint' when running rustc</p>



<a name="221188231"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221188231" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221188231">(Dec 30 2020 at 03:57)</a>:</h4>
<p>yeah I have no idea how to do this</p>



<a name="221188751"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221188751" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221188751">(Dec 30 2020 at 04:12)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/pull/53762">https://github.com/rust-lang/rust/pull/53762</a> seems relevant but I don't understand anything in that PR :/</p>



<a name="221188993"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221188993" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221188993">(Dec 30 2020 at 04:20)</a>:</h4>
<p>well, at least I got something out of tonight <a href="https://github.com/rust-lang/rust/pull/80500">https://github.com/rust-lang/rust/pull/80500</a></p>



<a name="221194359"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221194359" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221194359">(Dec 30 2020 at 06:58)</a>:</h4>
<p>Keeping the old names as an alias seems reasonable for compatibility.</p>



<a name="221194378"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221194378" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221194378">(Dec 30 2020 at 06:59)</a>:</h4>
<p>As for approval processes, I don't think T-lang should be a gating approval for rustdoc lints.</p>



<a name="221204635"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221204635" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Vadim Petrochenkov <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221204635">(Dec 30 2020 at 10:55)</a>:</h4>
<p>I'm also ok with requiring only rustdoc team approval, if the lints are scoped to rustdoc (implemented in rustdoc, maybe namespaced to <code>rustdoc::</code>) and follow naming conventions (<a href="https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#lints">https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#lints</a>).</p>



<a name="221208957"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221208957" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> GuillaumeGomez <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221208957">(Dec 30 2020 at 12:25)</a>:</h4>
<p>I didn't here there was one... You create it, add doc and test for it and I think that's it. The only "policy" I know about lints is about the naming, but I don't think it's what you're asking.</p>



<a name="221209064"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221209064" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> GuillaumeGomez <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221209064">(Dec 30 2020 at 12:27)</a>:</h4>
<p>As for the lint scoping, it's funny because we talked about it recently. :D</p>
<p>However, it'd be a breaking change to just remove them so like <span class="user-mention" data-user-id="239881">@Josh Triplett</span> said: having them as aliases (at least for some time) will be needed).</p>



<a name="221209124"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221209124" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221209124">(Dec 30 2020 at 12:28)</a>:</h4>
<p>The aliases could only be removed on an edition boundary</p>



<a name="221212761"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221212761" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> flip1995 <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221212761">(Dec 30 2020 at 13:37)</a>:</h4>
<p>So  the process would be to move rustdoc lints to scoped lints, with "silent aliases" (allow by default lint) and with edition 2021 make it warn-by-default and remove the aliases with edition 2024 completely?</p>



<a name="221214027"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221214027" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221214027">(Dec 30 2020 at 13:57)</a>:</h4>
<p>why not warn-by-default in 2018 and remove in 2021? the only lint I expect this to actually matter for is <code>broken_intra_doc_links</code>, which was just stabilized; the others are either nightly-only or not many people use them</p>



<a name="221214392"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221214392" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> flip1995 <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221214392">(Dec 30 2020 at 14:02)</a>:</h4>
<p>I would also warn-by-default immediately (that's what Clippy did). But I interpreted <span class="user-mention" data-user-id="211727">@Jonas Schievink</span> message like we would have to wait for the edition to emit a warning. But I think this is for T-rustdoc and T-lang to decide, so I don't want to get in the way here.</p>
<p>If you need help to get the <code>rustdoc::</code> prefix to work let me know, though.</p>



<a name="221239366"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20is%20the%20policy%20for%20new%20lints%3F/near/221239366" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20is.20the.20policy.20for.20new.20lints.3F.html#221239366">(Dec 30 2020 at 19:27)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/pull/80527">https://github.com/rust-lang/rust/pull/80527</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>